import { $get } from '@js/request'
import { RoomSchema, BookedSchema } from '@src/components/schema/room';

export async function getRoomListRequest (): Promise<RoomSchema[]> {
  const res = await $get('/api/commission/hearingroom/getHearingroomCloud')
  return res.data
}

export async function getBookListRequest (day: string): Promise<BookedSchema[]> {
  const res = await $get('/api/commission/hearingroombook/day', { day })
  return res.data
}
